package com.update.controller;

import com.common.basic.Result;
import com.update.model.ApkInfo;
import com.update.service.ApkInfoService;
import com.update.service.ApkVersionService;
import com.update.service.OldApkVersionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/android")
public class AndroidController {

    @Autowired
    private ApkInfoService apkInfoService;

    @Autowired
    private ApkVersionService apkVersionService;

    @Autowired
    private OldApkVersionService oldApkVersionService;


    @RequestMapping(value = {"/apk/{apkName}"}, method = RequestMethod.GET)
    public Result<ApkInfo> getApkInfo(@PathVariable("apkName") String apkName) {
        Result<ApkInfo> result = new Result();

        return result;
    }


}
